package API.Watch;

/**
 * Created by Lee on 2017/2/16 0016.
 */
public class StopWatch {
    private final long start;
    public StopWatch() {
        start = System.currentTimeMillis();
    }

    public double elapsedSecond() {
        long now = System.currentTimeMillis();
        return (now - start) / 1000.0;
    }

    public double elapsedMinute() {
        long now = System.currentTimeMillis();
        return (now - start) / 1000.0/60;
    }
    public double elapsedMillis() {
        long now = System.currentTimeMillis();
        return (now - start)/1.0;
    }

}
